<template>
  <el-descriptions title="个人信息" direction="vertical" :column="4" border>
    <el-descriptions-item label="用户名"><span>{{userName}}</span></el-descriptions-item>
    <el-descriptions-item label="身份">管理员</el-descriptions-item>
    <el-descriptions-item label="备注" :span="2">
      <el-tag size="small">Java</el-tag>
    </el-descriptions-item>
    <el-descriptions-item label="电话">
      123456789
    </el-descriptions-item>
    <el-descriptions-item label="联系地址">成都市金牛区二环路北一段53号新诚信大厦</el-descriptions-item>
  </el-descriptions>
</template>

<script>
  import myUtil from '../../util/myUtil.js';
  export default {
    name: "userInfoEle",
    data() {
      return {
        userInfo: {
          userId: null,
          userName: ""
        },
        userName: "",
      }
    },
    mounted() {
      //取出本地存储的用户名
      this.userName = localStorage.getItem("userName");
      this.userId = localStorage.getItem("userId");

    }
  }
</script>

<style>
</style>
